Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): Fix shutdown order #675

Merged
merged 1 commit into from
Jan 14, 2023
Merged

Conversation

dranikpg
Copy link
Contributor

@dranikpg dranikpg commented Jan 13, 2023

When cancelling the replica while it was about to execute FlushAll(), the instance would crash.

As far as I understand, when stopping the instance, all transactions are stopped when destroying the connection that spawned them. But for the journal executor we don't have one.

It would crash because the varz parts are finalized before the replica is, so I just swapped them. It seems to be working now. Not sure if this order breaks anything?

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
@dranikpg dranikpg requested a review from romange January 13, 2023 18:17
@dranikpg dranikpg merged commit 9de347b into dragonflydb:main Jan 14, 2023
@dranikpg dranikpg deleted the fix-shutdown branch February 27, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants